export default [
  {
    path: '/user',
    layout: false,
    routes: [{ name: '登录', path: '/user/login', component: './User/Login' }],
  },
  { path: '/welcome', name: '欢迎', icon: 'smile', component: './Welcome' },
  { path: '/picture',
    name: '图片模块',
    icon: 'smile',
    routes: [
      { path: '/picture/add',name: '创建图片', component: './Picture/Add' },
      { path: '/picture/manager',name: '管理图片', component: './Picture/Manager' },
    ],
  },
  {
    path: '/openapi',
    name: '接口管理',
    icon: 'crown',
    // access: 'canAdmin',
    routes: [
      { path: '/openapi', redirect: '/openapi/Index' },
      { path: '/openapi/index', name: '接口主页', component: './Openapi/Index' },
      { path: '/openapi/invoke', name: '接口调试', component: './Openapi/Invoke' },
      { path: '/openapi/protocol', name: '接口上传', component: './Openapi/Protocol' },
    ],
  },
  {
    path: '/admin',
    name: '系统管理',
    icon: 'crown',
    // access: 'canAdmin',
    routes: [
      // { path: '/admin', redirect: '/admin/sub-page' },
      { path: '/admin/user', name: '用户管理', component: './System/User' },
      // { path: '/admin/user', name: '用户管理', component: './System/User', access: 'canAdmin' },
    ],
  },
  { path: '/person',
    name: '我的',
    icon: 'smile',
    routes: [
      { path: '/person/center',name: '个人中心', component: './User/Center' },
      { path: '/person/settings',name: '个人设置', component: './User/Settings' },
    ],
  },
  // { name: '查询表格', icon: 'table', path: '/list', component: './TableList' },
  { path: '/', redirect: '/welcome' },
  { path: '*', layout: false, component: './404' },
];
